<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="949.46">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #812d1f}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #0725ae}
span.s1 {color: #0725ae}
span.s2 {color: #000000}
span.s3 {color: #812d1f}
span.Apple-tab-span {white-space:pre}
</style>
</head>
<body>
<p class="p1"><b>PanX<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>equal power pan across an array of speakers</b></p>
<p class="p2"><br></p>
<p class="p3"><b>PanX.ar(numChans, in, pos, level, width)</b></p>
<p class="p2"><br></p>
<p class="p3">Multichannel equal power panner.</p>
<p class="p4"><br></p>
<p class="p3"><b>numChans</b> - number of output channels</p>
<p class="p3"><b>in</b> - input signal</p>
<p class="p3"><b>pos</b> - a value between 0 and 1. 0 - first speaker, 1 is the last. Values &lt; 0 fade out sound from the first speakers,</p>
<p class="p3"><span class="Apple-tab-span">	</span>and values &gt; 1 fade out sound from the last speakers. Sound does NOT wrap.</p>
<p class="p3"><b>level</b> - a control rate level input.</p>
<p class="p3"><b>width</b> - The width of the panning envelope. Nominally this is 2.0 which pans between pairs</p>
<p class="p3">of adjacent speakers. Width values greater than two will spread the pan over greater numbers</p>
<p class="p3">of speakers. Width values less than one will leave silent gaps between speakers.</p>
<p class="p2"><br></p>
<p class="p5">// five channel panning across an array</p>
<p class="p6"><span class="s1">Server</span>.internal.boot;</p>
<p class="p6">(</p>
<p class="p6">a = {</p>
<p class="p6"><span class="Apple-tab-span">	</span><span class="s1">PanX</span>.ar(</p>
<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>5, <span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// numChans</p>
<p class="p7"><span class="s2"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>ClipNoise<span class="s2">.ar, <span class="Apple-tab-span">	</span></span><span class="s3">// in</span></p>
<p class="p7"><span class="s2"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>MouseX.kr(-0.5, 1.5)<span class="s2">, </span><span class="s3">// pos</span></p>
<p class="p6"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>0.5,<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s3">// level</span></p>
<p class="p6"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>MouseY.kr(1, 3)<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s3">// width</span></p>
<p class="p6"><span class="Apple-tab-span">	</span>);</p>
<p class="p6">}.play(<span class="s1">Server</span>.internal);</p>
<p class="p6"><span class="s1">Server</span>.internal.scope(5);</p>
<p class="p6">)</p>
<p class="p2"><br></p>
<p class="p6">a.free;</p>
</body>
</html>
